package com.base.common;

import java.util.List;

import org.beetl.sql.core.engine.PageQuery;

public interface BaseDao<T extends BaseEntity>
{

	/**
	 * 根据sqlId查询对象集合
	 * @param sqlId
	 * @param paras
	 * @param target
	 * @return
	 */
	public List<T> find(String sqlId, Object paras);

	/**
	 * 根据sqlId查询对象集合(分页)
	 * @param sqlId
	 * @param pageQuery
	 * @return
	 */
	public PageQuery findByPage(String sqlId, Class<T> clazz, PageQuery pageQuery);

}
